package com.bulletelc.apollopre.module.display.product.details;

import com.bulletelc.apollopre.entity.OrderConfirmBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

/**
 * author: lhl
 * date  : 2017/12/26
 * desc  : TODO
 */

public interface ProductDetailsContract {

    interface View extends IView {

        void onSuccessAddCart();
        void onFailAddCart(String fail);
        void onErrorAddCart(String error);

        void onSuccessBuyNow(OrderConfirmBean confirmBean);
        void onFailBuyNow(String fail);
        void onErrorBuyNow(String error);

        void onSuccessCollect();
        void onFailCollect(String fail);
        void onErrorCollect(String error);

        void onSuccessCancelCollect();
        void onFailCancelCollect(String fail);
        void onErrorCancelCollect(String error);
    }

    interface Presenter extends IPresenter<View> {

        void addCart(String json,String token);

        void buyNow(String json, String token);

        void collect(String json);

        void cancelCollect(int productId);

    }

}
